home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.006 / xemacs-1 / lib / xemacs-19.13 / lisp / dired / dired-guess.elc < prev    next >
Emacs Compiled Lisp  |  1995-08-29  |  2.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
1% dexvert Combustion 2 Particle Library (other/combustion2ParticleLibrary) ext Unsupported
100% file Emacs/XEmacs v19 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default
100% xdgMime text/x-emacs-lisp default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 63 74 68 6f 6d 70 40 |piled by| cthomp@|
|00000020| 77 69 6c 6c 6f 77 2e 63 | 73 2e 75 69 75 63 2e 65 |willow.c|s.uiuc.e|
|00000030| 64 75 20 6f 6e 20 54 75 | 65 20 41 75 67 20 32 39 |du on Tu|e Aug 29|
|00000040| 20 31 33 3a 35 35 3a 33 | 35 20 31 39 39 35 0a 3b | 13:55:3|5 1995.;|
|00000050| 3b 3b 20 66 72 6f 6d 20 | 66 69 6c 65 20 2f 78 65 |;; from |file /xe|
|00000060| 6d 61 63 73 2f 78 65 6d | 61 63 73 2d 31 39 2e 31 |macs/xem|acs-19.1|
|00000070| 33 2d 72 65 6c 65 61 73 | 65 2f 65 64 69 74 6f 72 |3-releas|e/editor|
|00000080| 2f 6c 69 73 70 2f 64 69 | 72 65 64 2f 64 69 72 65 |/lisp/di|red/dire|
|00000090| 64 2d 67 75 65 73 73 2e | 65 6c 0a 3b 3b 3b 20 65 |d-guess.|el.;;; e|
|000000a0| 6d 61 63 73 20 76 65 72 | 73 69 6f 6e 20 31 39 2e |macs ver|sion 19.|
|000000b0| 31 33 20 58 45 6d 61 63 | 73 20 4c 75 63 69 64 2e |13 XEmac|s Lucid.|
|000000c0| 0a 3b 3b 3b 20 62 79 74 | 65 63 6f 6d 70 20 76 65 |.;;; byt|ecomp ve|
|000000d0| 72 73 69 6f 6e 20 32 2e | 32 35 3b 20 31 2d 53 65 |rsion 2.|25; 1-Se|
|000000e0| 70 2d 39 34 2e 0a 3b 3b | 3b 20 6f 70 74 69 6d 69 |p-94..;;|; optimi|
|000000f0| 7a 61 74 69 6f 6e 20 69 | 73 20 6f 6e 2e 0a 3b 3b |zation i|s on..;;|
|00000100| 3b 20 74 68 69 73 20 66 | 69 6c 65 20 75 73 65 73 |; this f|ile uses|
|00000110| 20 6f 70 63 6f 64 65 73 | 20 77 68 69 63 68 20 64 | opcodes| which d|
|00000120| 6f 20 6e 6f 74 20 65 78 | 69 73 74 20 69 6e 20 45 |o not ex|ist in E|
|00000130| 6d 61 63 73 20 31 38 2e | 0a 0a 28 69 66 20 28 61 |macs 18.|..(if (a|
|00000140| 6e 64 20 28 62 6f 75 6e | 64 70 20 27 65 6d 61 63 |nd (boun|dp 'emac|
|00000150| 73 2d 76 65 72 73 69 6f | 6e 29 0a 09 20 28 6f 72 |s-versio|n).. (or|
|00000160| 20 28 61 6e 64 20 28 62 | 6f 75 6e 64 70 20 27 65 | (and (b|oundp 'e|
|00000170| 70 6f 63 68 3a 3a 76 65 | 72 73 69 6f 6e 29 20 65 |poch::ve|rsion) e|
|00000180| 70 6f 63 68 3a 3a 76 65 | 72 73 69 6f 6e 29 0a 09 |poch::ve|rsion)..|
|00000190| 20 20 20 20 20 28 73 74 | 72 69 6e 67 2d 6c 65 73 | (st|ring-les|
|000001a0| 73 70 20 65 6d 61 63 73 | 2d 76 65 72 73 69 6f 6e |sp emacs|-version|
|000001b0| 20 22 31 39 22 29 29 29 | 0a 20 20 20 20 28 65 72 | "19")))|. (er|
|000001c0| 72 6f 72 20 22 54 68 69 | 73 20 66 69 6c 65 20 77 |ror "Thi|s file w|
|000001d0| 61 73 20 63 6f 6d 70 69 | 6c 65 64 20 66 6f 72 20 |as compi|led for |
|000001e0| 45 6d 61 63 73 20 31 39 | 2e 22 29 29 0a 0a 28 64 |Emacs 19|."))..(d|
|000001f0| 65 66 76 61 72 20 64 69 | 72 65 64 2d 67 75 65 73 |efvar di|red-gues|
|00000200| 73 2d 68 61 76 65 2d 67 | 6e 75 74 61 72 20 22 67 |s-have-g|nutar "g|
|00000210| 6e 75 74 61 72 22 20 22 | 5c 0a 2a 49 66 20 6e 6f |nutar" "|\.*If no|
|00000220| 6e 2d 6e 69 6c 2c 20 6e | 61 6d 65 20 6f 66 20 47 |n-nil, n|ame of G|
|00000230| 4e 55 20 74 61 72 20 28 | 65 2e 67 2e 20 5c 22 74 |NU tar (|e.g. \"t|
|00000240| 61 72 5c 22 20 6f 72 20 | 5c 22 67 6e 75 74 61 72 |ar\" or |\"gnutar|
|00000250| 5c 22 29 2e 0a 47 4e 55 | 20 74 61 72 27 73 20 60 |\")..GNU| tar's `|
|00000260| 7a 27 20 73 77 69 74 63 | 68 20 69 73 20 75 73 65 |z' switc|h is use|
|00000270| 64 20 66 6f 72 20 63 6f | 6d 70 72 65 73 73 65 64 |d for co|mpressed|
|00000280| 20 74 61 72 20 66 69 6c | 65 73 2e 0a 49 66 20 79 | tar fil|es..If y|
|00000290| 6f 75 20 64 6f 6e 27 74 | 20 68 61 76 65 20 47 4e |ou don't| have GN|
|000002a0| 55 20 74 61 72 2c 20 73 | 65 74 20 74 68 69 73 20 |U tar, s|et this |
|000002b0| 74 6f 20 6e 69 6c 3a 20 | 61 20 70 69 70 65 20 69 |to nil: |a pipe i|
|000002c0| 73 20 74 68 65 6e 20 75 | 73 65 64 2e 22 29 0a 28 |s then u|sed.").(|
|000002d0| 62 79 74 65 2d 63 6f 64 | 65 20 22 c0 c1 21 ac 85 |byte-cod|e "..!..|
|000002e0| 5c 6e ae 81 c3 11 c0 87 | 22 20 5b 62 6f 75 6e 64 |\n......|" [bound|
|000002f0| 70 20 64 69 72 65 64 2d | 67 75 65 73 73 2d 74 61 |p dired-|guess-ta|
|00000300| 72 20 64 69 72 65 64 2d | 67 75 65 73 73 2d 68 61 |r dired-|guess-ha|
|00000310| 76 65 2d 67 6e 75 74 61 | 72 20 22 74 61 72 22 5d |ve-gnuta|r "tar"]|
|00000320| 20 32 29 0a 28 64 65 66 | 76 61 72 20 64 69 72 65 | 2).(def|var dire|
|00000330| 64 2d 61 75 74 6f 2d 73 | 68 65 6c 6c 2d 63 6f 6d |d-auto-s|hell-com|
|00000340| 6d 61 6e 64 2d 61 6c 69 | 73 74 20 28 62 79 74 65 |mand-ali|st (byte|
|00000350| 2d 63 6f 64 65 20 22 c0 | c1 c2 c3 c4 c5 c6 0e 07 |-code ".|........|
|00000360| c8 50 42 c9 0e 5c 6e ab | 86 0e 07 cb 50 aa 85 cc |.PB..\n.|....P...|
|00000370| 0e 07 cd 51 42 ce 0e 5c | 6e ab 87 cf 0e 07 d0 51 |...QB..\|n......Q|
|00000380| aa 81 d1 42 af 09 87 22 | 20 5b 28 22 2e 5a 22 20 |...B..."| [(".Z" |
|00000390| 2e 20 22 75 6e 63 6f 6d | 70 72 65 73 73 22 29 20 |. "uncom|press") |
|000003a0| 28 22 2e 5a 2e 75 75 22 | 20 2e 20 22 75 75 64 65 |(".Z.uu"| . "uude|
|000003b0| 63 6f 64 65 20 2a 20 7c | 20 75 6e 63 6f 6d 70 72 |code * || uncompr|
|000003c0| 65 73 73 22 29 20 28 22 | 2e 75 75 22 20 2e 20 22 |ess") ("|.uu" . "|
|000003d0| 75 75 64 65 63 6f 64 65 | 22 29 20 28 22 2e 68 71 |uudecode|") (".hq|
|000003e0| 78 22 20 2e 20 22 6d 63 | 76 65 72 74 22 29 20 28 |x" . "mc|vert") (|
|000003f0| 22 2e 73 68 22 20 2e 20 | 22 73 68 22 29 20 28 22 |".sh" . |"sh") ("|
|00000400| 2e 73 68 61 72 22 20 2e | 20 22 75 6e 73 68 61 72 |.shar" .| "unshar|
|00000410| 22 29 20 22 2e 74 61 72 | 22 20 64 69 72 65 64 2d |") ".tar|" dired-|
|00000420| 67 75 65 73 73 2d 74 61 | 72 20 22 20 78 76 66 22 |guess-ta|r " xvf"|
|00000430| 20 22 2e 74 61 72 2e 5a | 22 20 64 69 72 65 64 2d | ".tar.Z|" dired-|
|00000440| 67 75 65 73 73 2d 68 61 | 76 65 2d 67 6e 75 74 61 |guess-ha|ve-gnuta|
|00000450| 72 20 22 20 78 76 66 7a | 22 20 22 7a 63 61 74 20 |r " xvfz|" "zcat |
|00000460| 2a 20 7c 20 22 20 22 20 | 78 76 66 20 2d 22 20 22 |* | " " |xvf -" "|
|00000470| 2e 74 61 72 2e 5a 2e 75 | 75 22 20 22 75 75 64 65 |.tar.Z.u|u" "uude|
|00000480| 63 6f 64 65 20 2a 20 7c | 20 22 20 22 20 78 76 66 |code * || " " xvf|
|00000490| 7a 20 2d 22 20 22 75 75 | 64 65 63 6f 64 65 20 2a |z -" "uu|decode *|
|000004a0| 20 7c 20 7a 63 61 74 20 | 7c 20 74 61 72 20 78 76 | | zcat || tar xv|
|000004b0| 66 20 2d 22 5d 20 31 32 | 29 20 22 5c 0a 2a 41 6c |f -"] 12|) "\.*Al|
|000004c0| 69 73 74 20 6f 66 20 66 | 69 6c 65 20 65 78 74 65 |ist of f|ile exte|
|000004d0| 6e 73 69 6f 6e 73 20 61 | 6e 64 20 74 68 65 69 72 |nsions a|nd their|
|000004e0| 20 73 75 67 67 65 73 74 | 65 64 20 63 6f 6d 6d 61 | suggest|ed comma|
|000004f0| 6e 64 73 2e 0a 53 65 65 | 20 61 6c 73 6f 20 76 61 |nds..See| also va|
|00000500| 72 69 61 62 6c 65 20 60 | 64 69 72 65 64 2d 61 75 |riable `|dired-au|
|00000510| 74 6f 2d 73 68 65 6c 6c | 2d 75 73 65 2d 6c 61 73 |to-shell|-use-las|
|00000520| 74 2d 65 78 74 65 6e 73 | 69 6f 6e 27 2e 22 29 0a |t-extens|ion'.").|
|00000530| 28 64 65 66 76 61 72 20 | 64 69 72 65 64 2d 61 75 |(defvar |dired-au|
|00000540| 74 6f 2d 73 68 65 6c 6c | 2d 75 73 65 2d 6c 61 73 |to-shell|-use-las|
|00000550| 74 2d 65 78 74 65 6e 73 | 69 6f 6e 20 6e 69 6c 20 |t-extens|ion nil |
|00000560| 22 5c 0a 2a 49 66 20 6e | 6f 6e 2d 6e 69 6c 2c 20 |"\.*If n|on-nil, |
|00000570| 75 73 65 73 20 6f 6e 6c | 79 20 74 68 65 20 6c 61 |uses onl|y the la|
|00000580| 73 74 20 65 78 74 65 6e | 73 69 6f 6e 20 6f 66 20 |st exten|sion of |
|00000590| 74 68 65 20 66 69 6c 65 | 6e 61 6d 65 2e 0a 20 20 |the file|name.. |
|000005a0| 46 6f 72 20 65 78 61 6d | 70 6c 65 2c 20 66 6f 6f |For exam|ple, foo|
|000005b0| 2e 74 61 72 2e 5a 20 77 | 6f 75 6c 64 20 75 73 65 |.tar.Z w|ould use|
|000005c0| 20 74 68 65 20 67 75 65 | 73 73 20 66 6f 72 20 74 | the gue|ss for t|
|000005d0| 68 65 20 2e 5a 20 65 78 | 74 65 6e 73 69 6f 6e 2e |he .Z ex|tension.|
|000005e0| 0a 49 66 20 6e 69 6c 2c | 20 75 73 65 20 61 6c 6c |.If nil,| use all|
|000005f0| 20 74 68 65 20 65 78 74 | 65 6e 73 69 6f 6e 73 2e | the ext|ensions.|
|00000600| 20 20 46 6f 72 20 65 78 | 61 6d 70 6c 65 2c 20 66 | For ex|ample, f|
|00000610| 6f 6f 2e 74 61 72 2e 5a | 20 77 6f 75 6c 64 20 67 |oo.tar.Z| would g|
|00000620| 75 65 73 73 0a 20 20 66 | 6f 72 20 74 68 65 20 2e |uess. f|or the .|
|00000630| 74 61 72 2e 5a 20 65 78 | 74 65 6e 73 69 6f 6e 2e |tar.Z ex|tension.|
|00000640| 22 29 0a 28 66 73 65 74 | 20 27 64 69 72 65 64 2d |").(fset| 'dired-|
|00000650| 72 65 61 64 2d 73 68 65 | 6c 6c 2d 63 6f 6d 6d 61 |read-she|ll-comma|
|00000660| 6e 64 20 23 5b 28 70 72 | 6f 6d 70 74 20 61 72 67 |nd #[(pr|ompt arg|
|00000670| 20 66 69 6c 65 73 29 20 | 22 c0 c1 c2 0b c4 c5 0e | files) |".......|
|00000680| 06 c7 0e 08 0b 5c 22 5c | 22 0b 26 06 87 22 20 5b |.....\"\|".&.." [|
|00000690| 64 69 72 65 64 2d 6d 61 | 72 6b 2d 70 6f 70 2d 75 |dired-ma|rk-pop-u|
|000006a0| 70 20 6e 69 6c 20 73 68 | 65 6c 6c 20 66 69 6c 65 |p nil sh|ell file|
|000006b0| 73 20 64 69 72 65 64 2d | 67 75 65 73 73 2d 73 68 |s dired-|guess-sh|
|000006c0| 65 6c 6c 2d 63 6f 6d 6d | 61 6e 64 20 66 6f 72 6d |ell-comm|and form|
|000006d0| 61 74 20 70 72 6f 6d 70 | 74 20 64 69 72 65 64 2d |at promp|t dired-|
|000006e0| 6d 61 72 6b 2d 70 72 6f | 6d 70 74 20 61 72 67 5d |mark-pro|mpt arg]|
|000006f0| 20 31 30 20 22 5c 0a 52 | 65 61 64 20 61 20 64 69 | 10 "\.R|ead a di|
|00000700| 72 65 64 20 73 68 65 6c | 6c 20 63 6f 6d 6d 61 6e |red shel|l comman|
|00000710| 64 20 75 73 69 6e 67 20 | 67 65 6e 65 72 69 63 20 |d using |generic |
|00000720| 6d 69 6e 69 62 75 66 66 | 65 72 20 68 69 73 74 6f |minibuff|er histo|
|00000730| 72 79 2e 0a 54 68 69 73 | 20 63 6f 6d 6d 61 6e 64 |ry..This| command|
|00000740| 20 74 72 69 65 73 20 74 | 6f 20 67 75 65 73 73 20 | tries t|o guess |
|00000750| 61 20 63 6f 6d 6d 61 6e | 64 20 66 72 6f 6d 20 74 |a comman|d from t|
|00000760| 68 65 20 66 69 6c 65 6e | 61 6d 65 28 73 29 0a 66 |he filen|ame(s).f|
|00000770| 72 6f 6d 20 74 68 65 20 | 76 61 72 69 61 62 6c 65 |rom the |variable|
|00000780| 20 60 64 69 72 65 64 2d | 61 75 74 6f 2d 73 68 65 | `dired-|auto-she|
|00000790| 6c 6c 2d 63 6f 6d 6d 61 | 6e 64 2d 61 6c 69 73 74 |ll-comma|nd-alist|
|000007a0| 27 20 28 77 68 69 63 68 | 20 73 65 65 29 2e 22 5d |' (which| see)."]|
|000007b0| 29 0a 28 66 73 65 74 20 | 27 64 69 72 65 64 2d 67 |).(fset |'dired-g|
|000007c0| 75 65 73 73 2d 73 68 65 | 6c 6c 2d 63 6f 6d 6d 61 |uess-she|ll-comma|
|000007d0| 6e 64 20 23 5b 28 70 72 | 6f 6d 70 74 20 66 69 6c |nd #[(pr|ompt fil|
|000007e0| 65 73 29 20 22 08 41 3f | ad 98 c1 08 40 5c 6e ab |es) ".A?|....@\n.|
|000007f0| 87 c3 c4 08 40 5c 22 aa | 85 c3 c5 08 40 5c 22 c6 |....@\".|....@\".|
|00000800| 4f 0e 07 5c 22 41 1e 08 | c9 ca 21 ac 89 cb 0e 0c |O..\"A..|..!.....|
|00000810| 0e 08 5c 22 88 aa 8b 0e | 08 ab 87 cd ce cf 0e 08 |..\"....|........|
|00000820| 23 88 d0 ce 0e 0c 5c 22 | 29 87 22 20 5b 66 69 6c |#.....\"|)." [fil|
|00000830| 65 73 20 61 73 73 6f 63 | 20 64 69 72 65 64 2d 61 |es assoc| dired-a|
|00000840| 75 74 6f 2d 73 68 65 6c | 6c 2d 75 73 65 2d 6c 61 |uto-shel|l-use-la|
|00000850| 73 74 2d 65 78 74 65 6e | 73 69 6f 6e 20 73 74 72 |st-exten|sion str|
|00000860| 69 6e 67 2d 6d 61 74 63 | 68 20 22 2e 5b 5e 2e 5d |ing-matc|h ".[^.]|
|00000870| 2a 24 22 20 22 5c 5c 2e | 22 20 6e 69 6c 20 64 69 |*$" "\\.|" nil di|
|00000880| 72 65 64 2d 61 75 74 6f | 2d 73 68 65 6c 6c 2d 63 |red-auto|-shell-c|
|00000890| 6f 6d 6d 61 6e 64 2d 61 | 6c 69 73 74 20 64 65 66 |ommand-a|list def|
|000008a0| 61 6c 74 20 66 65 61 74 | 75 72 65 70 20 67 6d 68 |alt feat|urep gmh|
|000008b0| 69 73 74 20 72 65 61 64 | 2d 73 74 72 69 6e 67 20 |ist read|-string |
|000008c0| 70 72 6f 6d 70 74 20 70 | 75 74 20 64 69 72 65 64 |prompt p|ut dired|
|000008d0| 2d 73 68 65 6c 6c 2d 63 | 6f 6d 6d 61 6e 64 2d 68 |-shell-c|ommand-h|
|000008e0| 69 73 74 6f 72 79 20 64 | 65 66 61 75 6c 74 20 72 |istory d|efault r|
|000008f0| 65 61 64 2d 77 69 74 68 | 2d 68 69 73 74 6f 72 79 |ead-with|-history|
|00000900| 2d 69 6e 5d 20 35 5d 29 | 0a |-in] 5])|. |
+--------+-------------------------+-------------------------+--------+--------+